/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.softace.jdbc.test.beans;

import com.softace.jdbc.annotations.JdbcAttribute;
import com.softace.jdbc.annotations.JdbcEntity;

/**
 *
 * @author S!LENT W@RRIOR
 */
@JdbcEntity(tableName = "degree")
public class DegreeBean {

    @JdbcAttribute(columnName = "degree_id", isKeyForMap = true)
    private int degreeId;
    @JdbcAttribute(columnName = "degree_title")
    private String degreeTitle;
    @JdbcAttribute(columnName = "degree_description")
    private String degreeDescription;

    /**
     * The default Constructor
     */
    public DegreeBean() {
    }

    /**
     * Another Constructor!
     *
     * @param degreeId the degree id
     * @param degreeTitle the degree name
     * @param degreeDescription degree description
     */
    public DegreeBean(int degreeId, String degreeTitle, String degreeDescription) {
        this.degreeId = degreeId;
        this.degreeTitle = degreeTitle;
        this.degreeDescription = degreeDescription;
    }

    /**
     * Sets the degree id
     *
     * @param degreeId new degree id
     */
    public void setDegreeId(int degreeId) {
        this.degreeId = degreeId;
    }

    /**
     * Sets the name of the degree
     *
     * @param degreeTitle the new name of degree
     */
    public void setDegreeTitle(String degreeTitle) {
        this.degreeTitle = degreeTitle;
    }

    /**
     * Sets some brief description about the degree
     *
     * @param degreeDescription degree description
     */
    public void setDegreeDescription(String degreeDescription) {
        this.degreeDescription = degreeDescription;
    }

    /**
     * Retrieves the degree id for a degree
     *
     * @return the degree id
     */
    public int getDegreeId() {
        return degreeId;
    }

    /**
     * Gets the name of the degree
     *
     * @return the degree name
     */
    public String getDegreeTitle() {
        return degreeTitle;
    }

    /**
     * Gives some brief description about the degree
     *
     * @return the degree description
     */
    public String getDegreeDescription() {
        return degreeDescription;
    }

    @Override
    public String toString() {
        return "DegreeBean{" + "degreeId=" + degreeId
                + ", degreeTitle=" + degreeTitle
                + ", degreeDescription=" + degreeDescription + '}';
    }
}
